package com.zc.action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class LogoutAction extends ActionSupport {

	@Override
	public String execute() throws Exception {
		System.out.println("执行注销功能");
		ActionContext context = ActionContext.getContext();
		Map<String, Object> session = context.getSession();
		System.out.println(session.values());
		// session.remove("user", user);
		session.put("user", null);
		// session.clear();
		// session.put("user", null);
		return SUCCESS;
	}
}
